<template>
    <view>
        <view class="item" v-for="(attr,index) in attrList" :key="index">
            <view class="item-img">
                <image class="img" :src="attr.image"></image>
            </view>
            <view class="name">
                {{attr.cName}} &nbsp; {{attr.eName}}
            </view>
            <view class="addr">
                <image class="addr-img" src="../../../static/images/address.png" mode="aspectFit"></image>
                {{attr.addr}}
            </view>
        </view>
    </view>
</template>

<script>
    export default {
        props:{
            attrList:{
                type:Array
            }
        }
    }
</script>

<style>
    .item{
        margin: 10px;
        /* width: 100%; */
    }
    .item-img{
        width: 100%;
    }
    .img{
        width: 100%;
        height: 190px;
        border-radius: 5px;
    }
    .name{
        font-size: 17px;
        margin-bottom: 5px;
    }
    .addr{
        font-size: 10px;
    }
    .addr-img{
        height: 17px;
        width: 17px;
        margin-right: 5px;
    }
</style>
